import os
import sys

filePathSrc = "F:\\mycode\\cplusplus\\qos\\include"  # 替换为你的文件路径

for root, dirs, files in os.walk(filePathSrc):
    for fn in files:
        notepad.open(root + "\\" + fn)
        notepad.runMenuCommand("Encoding", "EOL Conversion")
        notepad.save()
        notepad.close()